package webs;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class ShowUpload extends HttpServlet{

	 @Override
	    protected void doGet(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException {
	        doPost(httpServletRequest,httpServletResponse);
	    }

	    @Override
	    protected void doPost(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException {
	    	
	    	httpServletResponse.setCharacterEncoding("UTF-8");
	    	httpServletResponse.sendRedirect("upload.jsp");
	    }

	    @Override
	    public void destroy() {
	        super.destroy();    //To change body of overridden methods use File | Settings | File Templates.
	    }

	    @Override
	    public void init() throws ServletException {
	        super.init();    //To change body of overridden methods use File | Settings | File Templates.
	    }
	}
